<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>et</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
    <meta name="author" content="Muhammad Usman">
<%@include file="/commons/commonJs.jsp"%>

<script type="text/javascript">

function showSchool(data,divId){
	$("#"+divId).modal();
	$("#schoolName").val(data.schoolName);
	$("#shorName").val(data.shorName);
	$("#id").val(data.id);
	$("#telNo").val(data.telNo);
	$("#mobile").val(data.mobile);
	$("#address").val(data.address);
	$("#createUser").val(data.createUser);
	$("#createTime").val(data.createTime);
	$("#updateUser").val(data.updateUser);
	$("#updateTime").val(data.updateTime);
}


</script>
</head>

<body>

            <!-- content starts -->
                <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">主页</a>
            </li>
            <li>
                <a href="#">校区管理</a>
            </li>
        </ul>
    </div>


        



    <div class="row">
    <div class="box col-md-12">
    <div class="box-inner">
    <div class="box-header well" data-original-title="">
        <h2><i class="glyphicon glyphicon-user"></i> 校区列表</h2>
		<a class="btn btn-round btn-primary" href="javascript:skipPage('<%=basePath%>mgt/school/toSchoolSave.do')" style="font-size:10px;float:right">
        		<i class="glyphicon glyphicon-edit icon-white"></i>新增</a>
    </div>
    <div class="box-content">
    <table class="table table-bordered table-striped table-condensed">
    <thead>
    <tr>
        <th>id</th>
        <th>校区名称</th>
        <th>校区简称</th>
        <th>校区电话</th>
        <th>更新人</th>
        <th>更新时间</th>
        <th>Actions</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${schoolList }" var="item">  
	<c:if test="${!empty item }">
    	<tr>
        <td>${item.id }</td>
        <td class="center">${item.schoolName }</td>
        <td class="center">${item.shortName }</td>
        <td class="center">${item.telNo }</td>
        <td class="center">${item.updateUser }</td>
        <td class="center"><fmt:formatDate value="${item.updateTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
        <td class="center">
            <a class="btn btn-success" href="javascript:ajaxDiv(false, 'schoolShow', '<%=basePath%>mgt/school/toSchoolShow.do', '{id:${item.id }}', showSchool)" style="font-size:10px">
                <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                View
            </a>
            <a class="btn btn-info" href="javascript:skipPage('<%=basePath%>mgt/school/toSchoolUpdate.do','{id:${item.id }}')" style="font-size:10px">
                <i class="glyphicon glyphicon-edit icon-white"></i>
                Edit
            </a>
            <a class="btn btn-danger" href="javascript:skipPage('<%=basePath%>mgt/school/schoolDelete.do','{id:${item.id }}')" style="font-size:10px">
                <i class="glyphicon glyphicon-trash icon-white"></i>
                Delete
            </a>
        </td>
    	</tr>
    </c:if>
    </c:forEach>
    </tbody>
    </table>
    
    
    </div>
    </div>
    </div>
    <!--/span-->

    </div><!--/row-->

</form>
















	<div class="modal fade" id="schoolShow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">

        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">×</button>
                    <h3>校区信息</h3>
                </div>
                <div class="modal-body">
                	<fieldset>
                	<div class="form-group col-md-12">
						<label class="control-label" for="id">校区id</label>
					  	<input class="form-control" type="text" name="id" id="id" value=""  >
				  	</div>
                    <div class="form-group col-md-12">
                    <label class="control-label" for="schoolName">校区名称</label>
                    <input type="text" class="form-control" name="schoolName" value="" id="schoolName">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="passWord">校区简称</label>
                    <input type="text" class="form-control" name="shortName" value="" id="shortName">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="schoolName">校区电话</label>
                    <input type="text" class="form-control" name="telNo" value="" id="telNo">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="passWord">校区手机</label>
                    <input type="text" class="form-control" name="mobile" value="" id="mobile">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="schoolName">校区地址</label>
                    <input type="text" class="form-control" name="address" value="" id="address">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="passWord">创建人</label>
                    <input type="text" class="form-control" name="createUser" value="" id="createUser">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="passWord">创建时间</label>
                    <input type="text" class="form-control" name="createTime" value="" id="createTime">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="schoolName">修改人</label>
                    <input type="text" class="form-control" name="updateUser" value="" id="updateUser">
                </div>
                <div class="form-group col-md-12">
                    <label class="control-label" for="passWord">修改时间</label>
                    <input type="text" class="form-control" name="updateTime" value="" id="updateTime">
                </div>
				  	
				  	
				</fieldset>  
                </div>
                <div class="modal-footer">
                    <a href="#" class="btn btn-primary" data-dismiss="modal">Close</a>
                    <!-- <a href="#" class="btn btn-primary" data-dismiss="modal">Save changes</a> -->
                </div>
            </div>
        </div>
    </div>
    
    
    
    
    
    
    
    <!-- content ends -->


</body>
</html>
